﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using WFL.IoCUnity;

namespace WFL.RBAC
{
    [UnityConfiguration(File = "Unity.config")]
    public interface IResource
    {
        void Create(Resource item);
        void Delete(int id);
        void Update(Resource item);
        IList<Resource> GetList(string name, int pageIndex, int pageSize);
        Resource Get(int id);
        Resource GetByName(string name);
        Resource GetByTypeName(string typeName);

        ResourceLimit GetResourceLimit(int id, string limitResourceTypeName);
        IList<ResourceLimit> GetResourceLimitList(int id);
        IList<ResourceLimit> GetResourceLimitChain(int id, int limitId);
    }
}
